﻿/*
            Author : Nguyen Van Ty
            Email  : ngvanty03@gmail.com
            Date   : 11/12/2010 
           
            */


using System;
using System.Collections.Generic;
using System.Text;


namespace BusinessObject
{
    /// <summary>
    /// This is SortOrder object, it is object of BusinessObject table.
    /// </summary>
    public class SortOrder
    {
        #region fields
        private string sortField;
        private string sortExpression;
        #endregion fields

        #region constructor
        /// <summary>
        /// Define default constructor for SortOrder Object
        /// </summary>
        public SortOrder()
        {
            this.sortField = string.Empty;
            this.sortExpression=string.Empty;
        }
        /// <summary>
        /// Define constructor for SortOrder Object
        /// </summary>
        public SortOrder(string sortField, string sortExpression)
        {
            this.sortField = sortField;
            this.sortExpression = sortExpression;
        }
        #endregion constructor
        #region properties
        /// <summary>
        /// Define SortField Property
        /// </summary>
        public string SortField
        {
            get { return this.sortField; }
            set { this.sortField = value; }
        }
        /// <summary>
        /// Define SortExpression Property
        /// </summary>
        public string SortExpression
        {
            get { return this.sortExpression; }
            set { this.sortExpression = value; }
        }
        #endregion properties
    }
}
